package com.chcplayer.events
{
import flash.events.Event;

/**
 * author yh
 */
public class ViewZoomEvent extends Event
{
	/**
	 */
	public static const FIT_BG_SCALE:String = "fitBgScale";
	/**
	 */
	public static const FIT_FG_SCALE:String = "fitFgScale";
	/**
	 * 视图缩放
	 */
	public static const VIEW_ZOOM:String = "viewZoom";
//--------------------------------------------------------------------------------------------------
// private
//--------------------------------------------------------------------------------------------------
	/**
	 */
	private var m_nOldScale:Number;
	/**
	 */
	private var m_nLastW:int;
	private var m_nLastH:int;
	/**
	 */
	public function ViewZoomEvent(strType:String, nOldScale:Number, nLastW:int, nLastH:int)
	{
		super(strType);
		m_nOldScale = nOldScale;
		m_nLastW = nLastW;
		m_nLastH = nLastH;
	}
//==================================================================================================
// public
//==================================================================================================
	/**
	 */
	public function getOldScale():Number
	{
		return m_nOldScale;
	}
	/**
	 */
	public function getLastWidth():int
	{
		return m_nLastW;
	}
	/**
	 */
	public function getLastHeight():int
	{
		return m_nLastH;
	}
	/**
	 */
}
}